<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:gp="http://gp.componentes.jsf"
      xmlns:p="http://primefaces.org/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

  <ui:composition>

  <ui:insert></ui:insert>	 
  
  <script type="text/javascript" src="#{facesContext.externalContext.requestContextPath}/resources/componentes/spinner/js/spinner.js"></script>
	
	<script type="text/javascript">
	
		var json = "";

		 //-- --------------------------------------- Cuture ------------------------------- -->
		 
		  <c:if test="#{not empty culture}">
		  
		  	var culture= #{culture};
		   	json = $.extend(json,{"culture":culture}); 
		   	
		  </c:if>

		  //-- --------------------------------------- disabled ----------------------------- -->

		  <c:if test="#{not empty disabled}">
		  
		  	var disabled= #{disabled};
		   	json = $.extend(json,{"disabled":disabled}); 
		   	
		  </c:if>

		  //-- --------------------------------------- incremental --------------------------- -->

		  <c:if test="#{not empty incremental}">
		  
		  	var incremental= #{incremental};
		   	json = $.extend(json,{"incremental":incremental}); 
		   	
		  </c:if>

		  //-- --------------------------------------- max ------------------------------------ -->

		  <c:if test="#{not empty max}">
		  
		  	var max= #{max};
		   	json = $.extend(json,{"max":max}); 
		   	
		  </c:if>

		  //-- --------------------------------------- min ------------------------------------- -->

		  <c:if test="#{not empty min}">
		  
		  	var min= #{min};
		   	json = $.extend(json,{"min":min}); 
		   	
		  </c:if>

		  //-- ------------------------------- numberFormat ------------------------------------- -->

		  <c:if test="#{not empty numberFormat}">
		  
		  	var numberFormat= #{numberFormat};
		   	json = $.extend(json,{"numberFormat":numberFormat}); 
		   	
		  </c:if>

		  //-- --------------------------------------- page --------------------------------------- -->

		  <c:if test="#{not empty page}">
		  
		  	var page= #{page};
		   	json = $.extend(json,{"page":page}); 
		   	
		  </c:if>

		  //-- --------------------------------------- step --------------------------------------- -->

		  <c:if test="#{not empty step}">
		  
		  	var step= #{step};
		   	json = $.extend(json,{"step":step}); 
		   	
		  </c:if>

		  //-- --------------------------------------- Metodos ------------------------------------- -->
		  
		  spinner.gerarSpinner("##{form}\\:#{id}", json);

	</script>

  </ui:composition> 
   
</html>